package com.info.zhiduoduo.pay.sdk.dayspaysdk.config;

public class Config {

	//服务器地址，主备，当connect time out时切去备用地址
	final public static String[] easyUrls = {
			"http://101.231.207.206:17001/payment/payment",//测试
	};
	final public static String[] easyAgentPayUrls = {
			"http://101.231.207.206:17001/payment/agentPay ",//测试
	};
	final public static String[] easyQueryUrls = {
			"http://101.231.207.206:17001/payment/query",//测试
	};
	final public static String[] easyAuthUrls = {
			"http://101.231.207.206:17001/payment/merchant",//测试
	};
	final public static String[] easyMerchantUrls = {
			"http://101.231.207.206:17001/payment/merchant",//测试
	};

	final public static String merchantNo = "201805140014";
	//异步返回地址，接收交易结果，主备，注意消息唯一性控制
	final public static String myAsynResponseUrl1 = "http://101.231.207.206:17001/tester/AsynCallback";//测试
	//final public static String myAsynResponseUrl1 = "https://spay.dayspay.com.cn/tester/AsynCallback";//得仕
	final public static String myAsynResponseUrl2 = myAsynResponseUrl1;
	//同步返回地址，用于页面展示
	final public static String synResUrl="http://101.231.207.206:17001/tester/SynCallback";//测试

	final public static String reckonUrl = "http://127.0.0.1:8080/easy/payment/reckonfile";//得仕 https://spay.dayspay.com.cn/payment/reckonfile

	//服务端公钥，用于报文加密、验签
	final public static String easyPublicKey = "MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgGiYdXXRFuYDIG5Q8wKc49Bj4kz4J/2DMRN7NIipZt1GxeYGx3hCPAVRv45fFTTvd50WKQQK1fbBABec3MUIghTvJ+r9bulaxaMPkNM69DKMTMFun5bwtkTUmfx+X1T1+9/l2LKc+JC9ux3vxYYkl0iz/Kd4qrol6FRM79GV/QrLAgMBAAE=";

	//商户的公私钥，用于签名、加密、验签、解密
	//final public static String merchantPrivateKeyPath="D:\\days-mer.pfx";

	final public static String merchantPublicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfUd+Pql0ILYqbUEcMIJfp+XUVtKOanz9L2qjBkRcdLEsxMcETcqYEK4c72LDFr7+GDI4UGzwkwqDx7cweBnh6j6h0Tp9KRQHBrCPXVR8ADV31JSHjj23PFQjHolDwCFqFjZ5EX9vZidIkZBIwxyqejK3VSx3VPvPUM5vjlfW02QIDAQAB";

	final public static String merchantPrivateKeyPath="C:\\JAVA\\document.20200424\\days-mer.pfx";
	final public static String merchantPrivateKeyPwd = "11111111";
	//需要签名的请求字段，按顺序
	final public static String[] reqSignFields = {
			"serviceCode",
			"processCode",
			"agencyMerchantNo",
			"merchantNo",
			"merchantOrderNo",
			"sequenceNo",
			"merchantList",
			"merchantInfo",
			"direction",
			"orderNo",
			"orderDate",
			"amount",
			"refundAmount",
			"currency",
			"accountNo",
	};

	//需要签名的返回字段，按顺序
	final public static String[] resSignFields = {
			"serviceCode",
			"processCode",
			"agencyMerchantNo",
			"merchantNo",
			"merchantOrderNo",
			"sequenceNo",
			"orderNo",
			"amount",
			"refundAmount",
			"settleDate",
			"reckonSeqNo",
			"orderState",
			"accountCode",
			"idOrNameCode",
			"mobileCode",
			"responseCode",
			"merchantList"
	};



	//需要签名的请求字段，按顺序
	final public static String[] merReqSignFields = {
			"serviceCode",
			"processCode",
			"merchantNo",
			"sequenceNo",
			"inChannel",
			"merSubNo",
			"subMchNo",
			"merchantName",
			"simpleName",
			"mcc",
			"servicePhone",
			"businessLicenseNo",
			"linkMan",
			"linkMobileNo",
			"linkEmail",
			"accountNo",
			"accountName",
			"bankName"
	};

	//需要签名的返回字段，按顺序
	final public static String[] merResSignFields = {
			"serviceCode",
			"processCode",
			"merchantNo",
			"sequenceNo",
			"merSubNo",
			"subMchNo",
			"inChannel",
			"merchantName",
			"simpleName",
			"mcc",
			"servicePhone",
			"businessLicenseNo",
			"linkMan",
			"linkMobileNo",
			"linkEmail",
			"accountNo",
			"accountName",
			"bankName",
			"responseCode"
	};
}
